package com.wondersgroup.fjzlpt.org.util;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * 项目公用属性类
 * <p>
 * <p>
 * Created by sanma on 2017/9/19.
 */
@Component
public class ProjectParams {

    public static String projectName;

    public static String ystdzRole;

    public static String ysRole;

    public static String SXZZ_URL;

    public static String API_URL;

    public static String SXZZ_lIST_URL;

    public static String jtqyApiURL;

    public static String realPath;

    public static String getRealPath() {
        return realPath;
    }

    @Value("${service.realPath}")
    public void setRealPath(String realPath) {
        this.realPath = realPath;
    }

    public static String getJtqyApiUrl() {
        return jtqyApiURL;
    }

    /**第三方家签访问地址*/
    @Value("${service.api.url}")
    public void setJtqyApiUrl(String jtqyApiUrl) {
        jtqyApiURL = jtqyApiUrl;
    }

    public static String getSxzzlistUrl() {
        return SXZZ_lIST_URL;
    }

    /**双转转诊列表跳转的URL*/
    @Value("${service.sxzzxt.SXZZ_lIST_URL}")
    public void setSxzzlistUrl(String sxzzlistUrl) {
        SXZZ_lIST_URL = sxzzlistUrl;
    }

    public static String getSxzzUrl() {
        return SXZZ_URL;
    }

    /**双转系统跳转的URL*/
    @Value("${service.sxzzxt.SXZZ_URL}")
    public void setSxzzUrl(String sxzzUrl) {
        SXZZ_URL = sxzzUrl;
    }

    public static String getApiUrl() {
        return API_URL;
    }
    /**双转系统跳转的URL*/
    @Value("${service.sxzzxt.API_URL}")
    public void setApiUrl(String apiUrl) {
        API_URL = apiUrl;
    }

    public String getProjectName() {
        return projectName;
    }

    @Value(value = "${service.request.root}")
    public void setProjectName(String projectName) {
        this.projectName = projectName;
    }

    public String getYstdzRole() {
        return ystdzRole;
    }

    @Value("${service.ystdzRole}")
    public void setYstdzRole(String ystdzRole) {
        this.ystdzRole = ystdzRole;
    }

    public String getYsRole() {
        return ysRole;
    }

    @Value("${service.ysRole}")
    public void setYsRole(String ysRole) {
        this.ysRole = ysRole;
    }
}
